package com.hsgene.message.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;
import java.util.Date;

/**
 * 短信对象
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 15:33 2018/6/25
 * @Modified By:
 */
public class MessageInfo implements Serializable {

    private String id;
    /**
     * 发送结果
     */
    private String sendResult;
    /**
     * 发送号码
     */
    private String sendPhone;
    /**
     * 接收号码
     */
    @Value("${sms.mobile}")
    private String receivePhone;

    /**
     * 短信内容
     */
    private String msgContent;
    /**
     * 跳转地址
     */
    private String url;
    /**
     * 发送时间-------
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date sendTime;
    /**
     * 发送插件(1表示畅天游)
     */
    private int smsPlug = 1;
    /**
     * 备注
     */
    private String comment;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSendResult() {
        return sendResult;
    }

    public void setSendResult(String sendResult) {
        this.sendResult = sendResult;
    }

    public String getSendPhone() {
        return sendPhone;
    }

    public void setSendPhone(String sendPhone) {
        this.sendPhone = sendPhone;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public int getSmsPlug() {
        return smsPlug;
    }

    public void setSmsPlug(int smsPlug) {
        this.smsPlug = smsPlug;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}